package de.riceman.simpleGo.players;

import de.riceman.simpleGo.main.Configuration;


public abstract class Player {
	
	protected Configuration configuration;
	private String name;
	protected boolean player;

	/**
	 * @param name
	 * @param player
	 * @param configuration
	 */
	public Player(String name, boolean player, Configuration configuration) {
		this.name = name;
		this.player = player;
		this.configuration = configuration;
	}
	
	/**
	 * Generates the move as BitMatrix and fires a MOVE_GENERATED event.
	 * 
	 */
	public abstract void generateMove();

	/**
	 * Gets the player's name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @return the player
	 */
	public boolean getPlayer() {
		return player;
	}
}
